import request from "./Request.js";

/**
 * 获取嘿文评论
 */
export function getComment(heiId) {
	return request({
		url: "/comment",
		data: {
			heiId: heiId
		},
		method: "GET"
	});
}

/**
 * 添加嘿文评论
 */
export function addComment(heiId, content, parentId, replyId) {
	return request({
		url: "/comment",
		data: {
			heiId: heiId,
			content: content,
			parentId: parentId,
			replyId: replyId
		},
		method: "POST"
	});
}

/**
 * 删除嘿文评论
 */
export function deleteComment(commentId) {
	return request({
		url: "/comment",
		data: {
			commentId: commentId
		},
		method: "DELETE"
	});
}